<%@ page contentType="text/html;charset=UTF-8" trimDirectiveWhitespaces="true" %>
<%@ include file="../common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
    
</head>

<body>
	
	<!-- 右边 -->
	<div class="data_content">
		<!-- 右上 -->
		<div class="data_search">
			<form class="form-inline" action="index.html" method="get">  
    			起始时间：<input class="form-control layer-date" id="startDate" style="height:28px;width:186px;" placeholder="起始时间" onclick="laydate({istime: false,isToday: true, format: 'YYYY-MM-DD'})">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			终止时间：<input class="form-control layer-date" id="endDate" style="height:28px;width:186px;" placeholder="终止时间" onclick="laydate({istime: false,isToday: true, format: 'YYYY-MM-DD'})">&emsp;&emsp;&nbsp;&nbsp;&nbsp;
    			订单号：<input type="text" name="disburseNo" id="disburseNo"class="normal_input" placeholder="" value="">
    			<br/>
    			订单状态：<select class="normal_input" id="status" name="status">
            				<option value="">请选择</option>
            				<option value="4">代理商已付款</option>
            				<option value="9">备货中</option>
            				<option value="10">取消备货</option>
            				<option value="5">供货商已发货</option>
            		   </select>
    			&emsp;&emsp;
    			用户名：<input type="text" name="buyerMemberName" id="buyerMemberName"class="normal_input" placeholder="" value="">&emsp;&emsp;
    			收货手机：<input type="text" name="phone" id="phone"class="normal_input" placeholder="" value="">
    			&emsp;&nbsp;  
    			<button type="button" class="btn btn-primary" id="query" onclick="queryData();">搜索</button>&nbsp;&nbsp; 
    			<button type="button" class="btn btn-success" id="reset" onclick="resetValues();">重置</button>
			</form>
		</div>
		
		<!-- 右下 -->
	<div class="data_list" style="overflow-y:scroll; overflow-x:hidden; height:500px;">
			  <table class="table table-striped table-bordered table-hover dataTables-example" style="table-layout:fixed; " id="table_list">
              
              </table>
         <div id="noDataDisplay" style="text-align:center;display:none;"><h2>没有找到匹配的记录</h2></div>
         
         <div class="data_page" id="data_page" style="margin-top:-20px;">
			<div class="page_row">
				<div class="row_style">
					<div class="dataTables_info" id="recordShow" style="display:none;">第<span id="pageNum"></span>  页 <span id="endResult"></span>，<span id="totalPages"></span></div>
				</div>
				<div class="row_style">
					<div class="dataTables_paginate paging_simple_numbers">
						<ul class="pagination" id="pageContent" style="display:none;">
							<li id="firstPage" onclick="gotoFirstPage();"><span class="glyphicon glyphicon-step-backward" aria-hidden="true"></span></li>
							<li id="prePage" onclick="gotoPrePage();"><span class="glyphicon glyphicon-backward" aria-hidden="true"></span></li>
							<li><span><input type="text" id="selectPage" class="ui-pg-input"/></span></li>
							<li id="nextPage" onclick="gotoNextPage();"><span class="glyphicon glyphicon-forward" aria-hidden="true"></span></li>
							<li id="lastPage" onclick="gotoLastPage();"><span class="glyphicon glyphicon-step-forward" aria-hidden="true"></span></li>
						</ul>
					</div>
				</div>
		   </div>
	    </div>
	</div>
	
	<!-- 弹出框 -->
	<div class="modal inmodal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog" style="width:320px;">
                <div class="modal-content animated bounceInRight">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">
                        	<span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                        </button>
                        <h4 class="modal-title">修改订单信息</h4>
                    </div>
                    <div class="modal-body">
                    	<form action="" style="width:290px;" id="saveOrUpdateForm" method="post">
                    	    <input type="hidden" class="normal_input" id="ustatus" name="status">
                    		<div class="form-group">
            					订&nbsp;&nbsp;单&nbsp;&nbsp;号:<input type="text" class="normal_input" id="uDisburseNo" name="disburseNo">
                    		</div>
                    		<div class="form-group">
            					物流公司:<input type="text" class="normal_input" id="logisticsCompany" name="logisticsCompany">
                    		</div>
                    		<div class="form-group">
            					物流单号:<input type="text" class="normal_input" id="logisticsNo" name="logisticsNo">
                    		</div>
                    		
                    	</form>
                    </div>
                    <div class="modal-footer">
                    	<button type="button" class="btn btn-primary" onclick="update();">保存</button>
                        <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
    </div>
    
    <!-- 弹出框 -->
	<div class="modal inmodal" id="detailModal" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog" style="width:420px;">
                <div class="modal-content animated bounceInRight">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">
                        	<span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                        </button>
                        <h4 class="modal-title">订单详情</h4>
                    </div>
                    <div class="modal-body">
                    		<div class="form-group">
            					订&nbsp;&nbsp;单&nbsp;&nbsp;号:&nbsp;&nbsp;<div id="dDisburseNo" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					材质号:&nbsp;&nbsp;<div id="dmaterial" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					色号:&nbsp;&nbsp;<div id="dcolor" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					品牌编号:&nbsp;&nbsp;<div id="ditemCode" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					原始价:&nbsp;&nbsp;<div id="dreferencePriceShow" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					货币单位:&nbsp;&nbsp;<div id="dcurno" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					收&nbsp;&nbsp;货&nbsp;&nbsp;人:&nbsp;&nbsp;<div id="dReceiveName" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					联系方式:&nbsp;&nbsp;<div id="dPhone" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					收货地址:&nbsp;&nbsp;<div id="daddressDetail" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					邮&nbsp;&nbsp;&nbsp;&nbsp;编:&nbsp;&nbsp;<div id="dzipCode" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					物流公司:&nbsp;&nbsp;<div id="dlogisticsCompany" style="display:inline"></div>
                    		</div>
                    		<div class="form-group">
            					物流单号:&nbsp;&nbsp;<div id="dlogisticsNo" style="display:inline"></div>
                    		</div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
    </div>
		
		
 </div>
</body>
	<content tag="scripts">
    	<script src="${appServer}/js/order/js/order.js"></script>
	</content>
</html>